<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>
        <ui:composition template="./../templates/templateMain.xhtml">

            <ui:define name="content">

                <p:panel header="Cadastro">
                    <h:form>
                        <p:panelGrid columns="2">
                            <h:outputLabel value="Nome"/>
                            <p:inputText value="#{backingCliente.c1.nomeCliente}"/>

                            <h:outputLabel value="Endereço"/>
                            <p:inputText value="#{backingCliente.c1.endereco}"/>

                            <h:outputLabel value="CEP"/>
                            <p:inputMask value="#{backingCliente.c1.cep}" mask="99.999.999"/>

                            <h:outputLabel value="CPF"/>
                            <p:inputMask value="#{backingCliente.c1.cpf}" mask="999.999.999-99"/>

                            <h:outputLabel value="Telefone"/>
                            <p:inputMask value="#{backingCliente.c1.telefone}" mask="(99) 9999-9999"/>

                            <h:outputLabel value="Celular"/>
                            <p:inputMask value="#{backingCliente.c1.celular}" mask="(99) 9999-9999"/>

                            <h:outputLabel value="Login"/>
                            <p:inputText value="#{backingCliente.c1.login}"/>

                            <h:outputLabel value="Senha"/>
                            <h:inputSecret value="#{backingCliente.c1.password}"/>

                        </p:panelGrid>
                        <p:commandButton value="Cadastrar-se" action="#{backingCliente.addCliente()}" id="btc1"/>
                        <p:commandButton value="dss" action="#{backingCliente.test()}" id="btc2"/>
                    </h:form>
                </p:panel>

            </ui:define>
        </ui:composition>
    </body>
</html>
